package chapter_seventeen.text246;

/**
 * Data time:2021/11/8 16:08
 * StudentID:2019112118
 * Author:hgw
 * Description: //充当请求接受者
 */
public class Adder {
    private int num;    //定义初始值为0

    //加法操作，每次将传入的值与num作加法运算，再将结果返回
    public int add(int value) {
        num += value;
        return num;
    }
}
